const path = require('path')
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')


module.exports = {
    mode: 'development',

    entry: './src/index.js',

    plugins: [
        // ...
        // 开启 BundleAnalyzerPlugin
        new BundleAnalyzerPlugin(),
    ],

    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'bundle.[fullhash].js'
    }
}